package net.ocps.tchs.GovSim;
import com.badlogic.gdx.graphics.g2d.Sprite;

import aurelienribon.tweenengine.TweenAccessor;

public class SpriteAccessor implements TweenAccessor<Sprite> {
	public static final int Alpha = 0;

	@Override
	public int getValues(Sprite target, int tweenType, float[] returnValues) {
		switch(tweenType)
		{
		case Alpha:
			returnValues[0] = target.getColor().a;
			
		}
		return 1;
	}

	@Override
	public void setValues(Sprite target, int tweenType, float[] newValues) {
		switch(tweenType)
		{
		case Alpha:
			target.setColor(target.getColor().r , target.getColor().g, target.getColor().b, newValues[0]);
			break;
		}
	}
	

}